# -*- coding: utf-8 -*-
from autocomplete_light.contrib.generic_m2m import GenericModelForm
from django import forms
from django.forms import Form
from expertos.models import Experto


class AutorForm(Form):
    nombre = forms.CharField(widget=forms.TextInput(attrs={'placeholder':u'Nombre del Autor'}))
    apellido = forms.CharField(widget=forms.TextInput(attrs={'placeholder':u'Apellido del Autor'}))
    institucion = forms.CharField(required = False,widget=forms.TextInput(attrs={'placeholder':u'Institución a la que pertenece'}))
    
    
class ExpertoAutorForm(Form):
    experto = forms.ModelChoiceField(Experto.objects.all())